package com.wxtwxt.ruralmall.product.feign;

import com.wxtwxt.ruralmall.common.to.SkuReductionTo;
import com.wxtwxt.ruralmall.common.to.SpuBoundsTo;
import com.wxtwxt.ruralmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Wxt
 * @create 2023-03-02 10:39
 */
@FeignClient("ruralmall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @PostMapping("/coupon/skufullreduction/saveReductionInfo")
    R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo);
}
